﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="report.aspx.cs" Inherits="report" %>

<%@ Register Assembly="CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
    Namespace="CrystalDecisions.Web" TagPrefix="CR" %>


<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Marco Display Ad. System Report</title>
    
    <link rel="alternate stylesheet" type="text/css" media="all" href="scripts/calendar-blue.css" title="winter" />
    <!-- import the calendar script -->
    <script type="text/javascript" src="scripts/calendar.js"></script>
    <!-- import the language module -->
    <script type="text/javascript" src="scripts/calendar-en.js"></script>           

    <link href="/aspnet_client/System_Web/2_0_50727/CrystalReportWebFormViewer3/css/default.css"
        rel="stylesheet" type="text/css" />

<script type="text/javascript">

function ClearAddress()
{
var obj = document.getElementById("tdAddress");
if ( obj != null ) 
    obj.InnerHtml = "";
}

 </script>   

    <link href="/aspnet_client/System_Web/2_0_50727/CrystalReportWebFormViewer3/css/default.css"
        rel="stylesheet" type="text/css" />
    <link href="/aspnet_client/System_Web/2_0_50727/CrystalReportWebFormViewer3/css/default.css"
        rel="stylesheet" type="text/css" />
    <link href="/aspnet_client/System_Web/2_0_50727/CrystalReportWebFormViewer3/css/default.css"
        rel="stylesheet" type="text/css" />
</head>
<body>
<script type="text/javascript">
    setActiveStyleSheet(document.getElementById("winter"), "winter");
</script>

    <form id="form1" runat="server">
    
    <table border="0" cellspacing="1" cellpadding="2" style="width: 670px; background-color: inactivecaptiontext;">
    <th colspan="3">Marco Display Ad. System Report</th>
        <tr><td style="width: 54px">
            分社</td><td style="width: 371px"> 
            <asp:DropDownList ID="ddl_pub" runat="server" Width="242px" AutoPostBack="True" OnSelectedIndexChanged="ddl_pub_SelectedIndexChanged" DataSourceID="XDS_Branch" DataTextField="name" DataValueField="value">
            </asp:DropDownList></td>
            <td>
                <asp:XmlDataSource ID="XDS_Branch" runat="server" DataFile="~/reports/production.xml"
                    XPath="/setting/pd"></asp:XmlDataSource>
            </td>
        </tr>
        <tr><td style="background-color:inactivecaptiontext; width:54px; height: 53px;">
                    報表</td><td style="height: 53px; width: 371px;">
                    <asp:DropDownList ID="ddl_report" runat="server" Width="300px" DataSourceID="XmlDataSourceReport" DataTextField="name" DataValueField="value" AutoPostBack="True" OnSelectedIndexChanged="ddl_report_SelectedIndexChanged" >
                    </asp:DropDownList><asp:XmlDataSource ID="XmlDataSourceReport" runat="server">
                    </asp:XmlDataSource>
            </td>
            <td>
                AE:<asp:TextBox ID="tb_agent" runat="server" Width="85px"></asp:TextBox>
            <asp:Literal ID="lb_customer" runat="server" Text="to:"></asp:Literal><asp:TextBox ID="tb_agent_to" runat="server" Width="91px"></asp:TextBox>
            </td>
        </tr>
                <tr><td style="width:54px;">
                    日期</td><td style="width: 371px">
            <table border="0" cellpadding="1">            
            <tr><td style="height: 29px">
                由<input id="t_efffrom" runat="server"  readonly="readonly" size="15"
                    type="text" /><input id="rs_efffrom" onclick="return rs_efffrom_onclick()" type="reset"
                        value=" ... " /></td><td style="height: 29px">
                            至<input id="t_effto" runat="server"  readonly="readonly" size="15" type="text" /><input
                    id="rs_effto" onclick="return rs_effto_onclick()" type="reset" value=" ... " /></td></tr></table>
                </td><td align="right">
                    <asp:Button ID="btn_preview" runat="server" Text="顯示報表" Width="200px" OnClick="btn_preview_Click" /></td></tr>
                <tr ><td align="center" colspan="3" id="tdAddress">
                    <asp:Literal ID="ltAddress" runat="server"></asp:Literal>
                    </td></tr>
     </table>
       <CR:CrystalReportViewer ID="CRViewer" runat="server" AutoDataBind="True" Height="1121px" PrintMode="ActiveX" Width="878px" />
    </form>
        
</body>
</html>
